import {
  shareAgentSignPlatformList,
  getPartnerWithdrawList,
  getWithdrawDetail,
  withdrawPreload,
  applyWithdraw,
  cancelWithDraw,
} from '@/services/Agent'

export default () => {
  // 合伙人对外分享汇总数据
  const ShareAgentSignPlatformList = <T>(data: T) => {
    return shareAgentSignPlatformList(data)
  }

  // 财务对账-体现记录列表接口(包含顶部汇总和角标统计)
  const GetPartnerWithdrawList = <T>(data: T) => {
    return getPartnerWithdrawList(data)
  }

  // 财务对账-提现详情接口
  const GetWithdrawDetail = <T>(data: T) => {
    return getWithdrawDetail(data)
  }

  // 账户账单-申请提现预加载接口
  const WithdrawPreload = <T>(data: T) => {
    return withdrawPreload(data)
  }

  // 账户账单-申请提现接口
  const ApplyWithdraw = <T>(data: T) => {
    return applyWithdraw(data)
  }

  // 账户账单-申请提现接口
  const CancelWithDraw = <T>(data: T) => {
    return cancelWithDraw(data)
  }

  return {
    ShareAgentSignPlatformList,
    GetPartnerWithdrawList,
    GetWithdrawDetail,
    WithdrawPreload,
    ApplyWithdraw,
    CancelWithDraw,
  }
}
